package com.rd.student.jiaji.class1.wangyufang.day0801;

import java.util.Arrays;

public class ArrayTest3 {
    public static void main(String[] args) {
        int[] array = new int[]{1, 3, 5, 7, 9};
        int[] array1 = new int[]{2, 4, 6, 8, 10};
        int[] array2 = new int[10];
        System.arraycopy(array, 0, array2, 0, 5);
        System.arraycopy(array1, 0, array2, 5, 5);
        Arrays.sort(array2);
        System.out.println(Arrays.toString(array2));
    }
}
